package cn.edu.jxau.admin.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.edu.jxau.domain.notification;
import cn.edu.jxau.service.readMessage;

public class showNotificationServlet extends HttpServlet {

	/**
	 * 资讯显示详情
	 */
	private static final long serialVersionUID = 1L;
	public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		response.setContentType("text/html;charset=utf-8");
        request.setCharacterEncoding("utf-8");
        notification   notification = readMessage.readNotificationByID(request.getParameter("ID"));
        request.getSession().setAttribute("zixun", notification);
        response.sendRedirect("admin/showNotification.jsp");
	}
	
}
